package cs575.wido.action;

import cs575.client.GroupEx;
import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;

import cs575.wido.ui.GroupDetailsWindow;
import cs575.wido.ui.GroupListWindow;
import cs575.wido.ui.TaskDetailsWindow;

public class ViewGroupAction extends AbstractAction {
	private GroupListWindow parent;
	
	public ViewGroupAction(GroupListWindow parent) {
		putValue(NAME, "Group Details");
		this.parent = parent;
	}

	@Override
	public void actionPerformed(ActionEvent arg0) {
		//GroupEx group = parent.getGroup();
                String[] group = parent.getGroup();
		GroupDetailsWindow gdw = new GroupDetailsWindow();
                //gdw.getGroup(group);
		//gdw.setGroup(group);
		gdw.setVisible(true);
	}
}
